import { REGISTER_SET_DATA } from "../action/actionType";

export let register = (state = {
    registerData: null
}, action) => {
    let { type } = action;
    let newState = { ...state };
    switch (type) {
        case REGISTER_SET_DATA:
            newState.registerData = action.data;
            return newState
            break;
        default:
            return newState
            break;
    }
}